package com.frame;

import java.util.HashMap;
import java.util.Map;

/**
 * 
 * @author sxjun1904
 * @since 2016-5-28
 */
public class Result {
	
    private boolean ok;

    private String msg;

    private String url;

    private Map<String,Object> data = new HashMap<String,Object>();
    
    public Result(boolean ok) {
        this.ok = ok;
    }

    public Result() {
    }

    public Map<String,Object> getData() {
        return data;
    }

    public Result addData(String key, Object value) {
    	this.data.put(key, value);
        return this;
    }

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public String getMsg() {
        return msg;
    }

    public Result setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public String getUrl() {
        return url;
    }

    public Result setUrl(String url) {
        this.url = url;
        return this;
    }
}
